import java.util.PriorityQueue;
import java.util.Queue;

public class Test {
    public static void main(String[] args) {

        Queue<Integer> priorityQueue = new PriorityQueue<>();
        priorityQueue.offer(10);
        priorityQueue.offer(2);
        System.out.println(priorityQueue.poll());

        TestHeap testHeap = new TestHeap();
        int[] array = {27,15,19,18,28,34,65,49,25,37};
        testHeap.initHeap(array);
        testHeap.createHeap();
        //testHeap.createHeap1();
        System.out.println();

        testHeap.headsort();
        System.out.println();
    }
}


